lcPaint_PtbufInterpolate Home

Generates new set of points as a result of source points interpolation.

 BOOL lcPaint_PtbufInterpolate (
   HANDLE hPtbuf,
   BOOL bClosed,
   HANDLE hPtbufDest,
   int FitType,
   int Quality
 );

Parameters
hPtbuf
  Handle to points buffer which represents source polyline.
bClosed
  If TRUE then source polyline is closed.
hPtbufDest
  Handle to destination points buffer. If NULL then this function will modify the source points buffer.
FitType
  Determines how destination polyline fits to the source polyline. Can be one of the following values:

Value Description
LC_PLFIT_BULGE Direct lines or arcs between points
LC_PLFIT_QUAD Quadratic B-spline
LC_PLFIT_CUBIC Cubic B-spline
LC_PLFIT_SPLINE Cubic spline goes through points
LC_PLFIT_ROUND Polyline with rounded vertices
LC_PLFIT_LINQUAD Combination of linear segments and quadratic B-spline segments
LC_PLFIT_BEZIER Bezier spline
Quality
  A number of lines generated per curve segment.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).